package demo.component.test;

import demo.component.student.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class StudentBeans {
    @Bean
    public Student students(){
        Student student=new Student();
        student.setAge(12);
        student.setName("张三");
        student.setPassword("123");
        return student;
    }

}
